<template>
  <j-modal :title="title" :width="1600" :visible="visible" :maskClosable="false" @close="close" destroyOnClose>
    <a-table
      ref="table"
      size="middle"
      bordered
      rowKey="id"
      :columns="columns"
      :dataSource="dataSource"
      :pagination="ipagination"
      :loading="loading"
      @change="handleTableChange"
      class="antableClass"
      :scroll="{ x: scrollX }"
    ></a-table>
  </j-modal>
</template>

<script>
import { JeecgListMixin } from '@/mixins/JeecgListMixin'
export default {
  name: 'ProjectQualityDetails',
  mixins: [JeecgListMixin],
  props:{
    columns:{
      type:Array,
      default:[]
    },
    scrollX:{
      type:Number,
      default:3000
    },
  },
  data() {
    return {
      queryParam: {
        insidePro: '',
        yearNum: '',
        type:''
      },
      visible: false,
      title: '详情列表',
      url: {
        list: '/sjmx/queryGcxmzlcbtzxXq',
      },
    }
  },
  methods: {
    close() {
      this.visible = false
    },
    edit(param,type,url) {
      console.log(url)
      this.url.list = url;
      this.queryParam = Object.assign({},param)
      typeof type == 'number' ? this.queryParam.insidePro=type:this.queryParam.type=type;
      this.loadData(1);
      this.visible = true
    },
  },
}
</script>

<style lang="less" scoped>
@import '~@assets/less/tableTheme.less';
</style>